package io.renren.modules.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.generator.dao.OverloadDao;
import io.renren.modules.generator.entity.OverloadEntity;
import io.renren.modules.generator.service.OverloadService;



@Service("overloadService")
public class OverloadServiceImpl implements OverloadService {
	@Autowired
	private OverloadDao overloadDao;
	
	@Override
	public OverloadEntity queryObject(Integer carryId){
		return overloadDao.queryObject(carryId);
	}
	
	@Override
	public List<OverloadEntity> queryList(Map<String, Object> map){
		return overloadDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return overloadDao.queryTotal(map);
	}
	
	@Override
	public void save(OverloadEntity overload){
		overloadDao.save(overload);
	}
	
	@Override
	public void update(OverloadEntity overload){
		overloadDao.update(overload);
	}
	
	@Override
	public void delete(Integer carryId){
		overloadDao.delete(carryId);
	}
	
	@Override
	public void deleteBatch(Integer[] carryIds){
		overloadDao.deleteBatch(carryIds);
	}

	@Override
	public List<OverloadEntity> yearList(Map<String, Object> map){
		return overloadDao.yearList(map);
	}

	@Override
	public int yearTotal(Map<String, Object> map){
		return overloadDao.yearTotal(map);
	}
}
